import {createApp} from 'vue'
import {createPinia} from "pinia";
import App from './App.vue'
import router from "./router";
import ArcoVue from '@arco-design/web-vue';
import ArcoVueIcon from '@arco-design/web-vue/es/icon';
import '@arco-design/web-vue/dist/arco.css';
import './global.css'
import 'virtual:windi.css'

async function main() {
    // 创建vue app
    const app = createApp(App)

    // 使用pinia
    const pinia = createPinia()
    app.use(pinia)
    // 使用vue-router
    app.use(router);
    // 使用组件库
    app.use(ArcoVue);
    // 使用图标库
    app.use(ArcoVueIcon);
    app.mount('#app')
}


await main()